<?php echo form_open('action/create_thread/'.$this->uri->segment(3)); ?>
<div class="error"><?php echo validation_errors(); ?></div>
<table width="596" border="0" >
<thead>
    <tr>
        <th colspan="2"><strong>Create Thread in  forum   <?php echo $this->uri->segment(3);?> </strong></th>
    </tr>
</thead>
 <tbody> 
  <tr>
    <td width="249">Thread Title</td>
    <td width="320">
        <input name="thread_title" type="text" id="thread_title" value="<?php echo set_value('thread_title');?>" maxlength="400" />
         <?php echo form_error('thread_title'); ?>
    </td>
  </tr>
  
  <tr>
    <td>Thread Description</td>
    <td>
        <input name="thread_desc" type="text" id="thread_desc"  value="<?php echo set_value('thread_desc');?>" maxlength="400" />
         <?php echo form_error('thread_desc'); ?>
    </td>
  </tr>
  <tr>
    <td>Thread Content      </td>
    <td>
        <textarea name="thread_content" id="thread_content"  cols="45" rows="5"><?php echo set_value('thread_content');?></textarea>
         <?php echo form_error('thread_content'); ?>
    </td>
  </tr>
  
  <tr>
    <td>Make PIN
      &nbsp;</td>
    <td><input type="checkbox" name="make_pin" id="make_pin"  value="1" <?php echo set_checkbox('make_pin', '1'); ?>/></td>
  </tr>
  <tr>
    <td>Make Lock&nbsp;</td>
    <td><input type="checkbox" name="make_lock" id="make_lock" value="1" <?php echo set_checkbox('make_lock', '1'); ?> /></td>
  </tr>
  

  <tr>
    <td>Icon ID&nbsp;</td>
    <td><input type="text" name="icon_id" value="<?php echo set_value('icon_id');?>" id="icon_id" /></td>
  </tr>
  

  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>
        <button type="submit" name="create"  class="positive" >Create</button>
        <button type="reset" name="reset" id="reset" class="negative" >Reset</button>   </td>
  </tr>
  </tbody>
 
  <tfoot>
      <tr>
            <td colspan="2">&nbsp;</td>
      </tr>
  </tfoot>
</table>

<?=form_close()?>
</div>
<script language="javascript" type="text/javascript" src="<?=base_url()?>required/tiny/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	// General options
	mode : "exact",
	elements : "thread_content",
	theme : "advanced",
	plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
	

	// Theme options
	theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect",
	theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,image,|,forecolor,backcolor,|,insertlayer,moveforward,movebackward,absolute,|,advhr,|,sub,sup",
	theme_advanced_buttons3 : "tablecontrols,|,charmap,iespell,media,|,print,|,fullscreenstyleprops,|,abbr,attribs,cleanup,mybutton,code",
	theme_advanced_buttons4 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_statusbar_location : "bottom",
	theme_advanced_resizing : true,

	// Example content CSS (should be your site CSS)
	content_css : "css/content.css",

	// Drop lists for link/image/media/template dialogs
	template_external_list_url : "lists/template_list.js",
	external_link_list_url : "lists/link_list.js",
	external_image_list_url : "lists/image_list.js",
	media_external_list_url : "lists/media_list.js"	
	

});
</script>